﻿using System.Collections.Generic;
using Mvc3App.Domain.Entities;
using Mvc3App.Domain.Repository;

namespace Mvc3App.RepositoryNH
{
    public class PersonaRepository : BaseRepository<Persona>, IPersonaRepository
    {
        public IEnumerable<Persona> FindByLastname(string lastname)
        {
            return Session.QueryOver<Persona>().Where(x => x.Apellido.Contains(lastname)).List();
        }
    }
}